Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <p>Standard pre</p> <pre>This is a standard pre. It will use as much space as it needs.</pre> <p>pre with a fixed width:</p> <div style="width:200px;overflow:auto"> <pre>This is a pre with a fixed width. It will use as much space as specified.</pre> </div> </body> <!-- Mirrored from www.w3schools.com/tags/tryit.asp?filename=tryhtml_pre_width_css by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:24:06 GMT --> </html>
Result:
Try it Yourself - © w3schools.com